package net.minecraft.src;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import net.minecraft.src.NetHandler;
import net.minecraft.src.Packet;

public class Packet105UpdateProgressbar extends Packet {

    public int windowId;
    public int progressBar;
    public int progressBarValue;


    public Packet105UpdateProgressbar() {
        super();
    }

    public Packet105UpdateProgressbar(int var1, int var2, int var3) {
        super();
        this.windowId = var1;
        this.progressBar = var2;
        this.progressBarValue = var3;
    }

    public void processPacket(NetHandler var1) {
        var1.func_20002_a(this);
    }

    public void readPacketData(DataInputStream var1) throws IOException {
        this.windowId = var1.readByte();
        this.progressBar = var1.readShort();
        this.progressBarValue = var1.readShort();
    }

    public void writePacketData(DataOutputStream var1) throws IOException {
        var1.writeByte(this.windowId);
        var1.writeShort(this.progressBar);
        var1.writeShort(this.progressBarValue);
    }

    public int getPacketSize() {
        return 5;
    }
}
